<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.HashMap"%>
<%@ include file="/WEB-INF/views/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改用户信息</title>
<LINK rel="stylesheet" type="text/css" href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/views/common_css.jsp"%>
<%@ include file="/WEB-INF/views/common_js.jsp"%>

<script type="text/javascript">
	/*部门岗位菜单联动  */
	$(function() {
		$("#department").change(function() {
			$("#department option").each(function(i, o) {
				if ($(this).attr("selected")) {
					$(".job").hide();
					$(".job").eq(i).show();
				}
			});
		});
		$("#department").change();
	});
	
	/* 表单异步提交 */
	 $(function(){
         $("#itemForm").ajaxForm({
             dataType: "html",//返回数据类型
             //提交成功后回调函数
             success: function(returnedDate){
            	 alert(returnedDate);
             }
         });
     });
	 
</script>
</head>
<body>
	<form:form id="itemForm" action="${pageContext.request.contextPath }/company/save" method="POST" modelAttribute="company">
		<br/><br/>
		<table width="50%" border=1 align="center">
			<tr>
				<td align="right">公司名称:&nbsp;</td>
				<td>
						<form:input path="companyName"/>
				</td>
			</tr>
			<tr>
				<td align="right">管理员登录账号:&nbsp;</td>
				<td>
						<form:input path="admin.usercode"/>
				</td>
			</tr>
			<tr>
				<td align="right">管理员登录密码:&nbsp;</td>
				<td>
						<form:input path="admin.password"/>
				</td>
			</tr>
			<tr>
				<td align="right">用户名称:&nbsp;</td>
				<td>
						<form:input path="admin.username"/>
				</td>
			</tr>
			

			<tr>
				<td colspan="2" align="center"><input type="submit" value="提交" />
				</td>
			</tr>
		</table>

	</form:form>
</body>

</html>